// components/listvideo/video.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    zid: {
      type: Number,
      value: 'ID'
    },
    title: {
      type: String,
      value: '标题'
    },
    imgUrl: {
      type: String,
      value: 'imgUrl'
    },
    hits: {
      type: String,
      value: '影响力'
    },
    duration: {
      type: String,
      value: 'duration'
    }

  },

  /**
   * 组件的初始数据
   */
  data: {
    playUrl:"images/play.png",
    hotUrl:"images/see.png"
  },

  /**
   * 组件的方法列表
   */
  methods: {
    onDetail:function(e){
      let id = e.currentTarget.dataset.id;
    
      wx.navigateTo({
        url: '/pages/playVideo/playVideo?id='+id,
      })
    }
  }
})
